package cn.gson.oasys.services.user.impl;

import cn.gson.oasys.model.dao.user.UserLogDao;
import cn.gson.oasys.model.entity.user.UserLog;
import cn.gson.oasys.services.user.UserLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class UserLogServiceImpl implements UserLogService {

    @Autowired
    private UserLogDao userLogDao;

    //记日志
    Logger log = LoggerFactory.getLogger(getClass());

    //获取用户日志列表信息
    @Override
    public List<UserLog> findByUser(Long userId) {
        return userLogDao.findByUser(userId);
    }
}
